package com.addplus.townmall.server.api.service.web.authoritymodule;


import com.addplus.townmall.server.api.model.authority.RoleMenuFunction;
import com.addplus.townmall.server.api.model.authority.ext.RoleMenuFunctionExt;

import java.util.List;

/**
 * 类名: RoleMenufunctionService
 *
 * @author zhangjiehang
 * @version V1.0
 * @date 2017/12/11 下午1:48
 * @description 类描述: 角色-功能关联实现类
 */
public interface RoleMenuFunctionService {

    /**
     * 描述: 根据角色id查询该角色关联的菜单
     * @param
     * @return
     * @throws Exception
     * @api {}
     * @author qiniu
     * @date 25/12/2017 8:00 PM
     * @version V1.0
     */
    List<RoleMenuFunction> getRoleMenuByRoleId(Integer id) throws  Exception;

    /**
     * 描述: 根据rId 和 mId 查询
     * @param
     * @return
     * @throws Exception
     * @api {}
     * @author qiniu
     * @date 26/12/2017 11:16 PM
     * @version V1.0
     */
    List<RoleMenuFunction> getRoleMenuByRoleAndMenuId(Integer roleId, Integer menuId) throws Exception;

    Boolean addRoleMenufunction(RoleMenuFunction roleMenufunction) throws Exception;

    Boolean logicalDeletedRoleMenufunctionById(Integer id) throws Exception;

    Boolean saveRoleMenuFunction(RoleMenuFunctionExt roleMenuFunctionExt) throws Exception;





}
